www.gusucode.com > vc++ 远程控制示例源程序-源码程序 > vc++ 远程控制示例源程序-源码程序\code\PeerYouC\PeerYouCView.cpp

    // PeerYouCView.cpp : implementation of the CPeerYouCView class
// Download by http://www.NewXing.com

#include "stdafx.h"
#include "PeerYouC.h"

#include "PeerYouCDoc.h"
#include "PeerYouCView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CPeerYouCView

IMPLEMENT_DYNCREATE(CPeerYouCView, CView)

BEGIN_MESSAGE_MAP(CPeerYouCView, CView)
	//{{AFX_MSG_MAP(CPeerYouCView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPeerYouCView construction/destruction

CPeerYouCView::CPeerYouCView()
{
	// TODO: add construction code here

}

CPeerYouCView::~CPeerYouCView()
{
}

BOOL CPeerYouCView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CPeerYouCView drawing

void CPeerYouCView::OnDraw(CDC* pDC)
{
	CPeerYouCDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CPeerYouCView printing

BOOL CPeerYouCView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CPeerYouCView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CPeerYouCView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CPeerYouCView diagnostics

#ifdef _DEBUG
void CPeerYouCView::AssertValid() const
{
	CView::AssertValid();
}

void CPeerYouCView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CPeerYouCDoc* CPeerYouCView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CPeerYouCDoc)));
	return (CPeerYouCDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CPeerYouCView message handlers